package com.cloud.cloudshop.shop.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloud.cloudshop.shop.dao.OrderMessageDao;
import com.cloud.cloudshop.shop.service.OrderMessageService;
import com.cloud.cloudshop.util.PageUtils;
import com.cloud.cloudshop.util.Query;
import com.cloud.common.entity.OrderMessageEntity;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("orderMessageService")
public class OrderMessageServiceImpl extends ServiceImpl<OrderMessageDao, OrderMessageEntity> implements OrderMessageService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderMessageEntity> page = this.page(
                new Query<OrderMessageEntity>().getPage(params),
                new QueryWrapper<OrderMessageEntity>()
        );

        return new PageUtils(page);
    }

}